home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Game / Thing / CPeepM16.as < prev    next >
Encoding:
Text File  |  2011-08-19  |  2.3 KB  |  91 lines

  1. package Local.Game.Thing
  2. {
  3.    import Local.Game.World.CPosition;
  4.    
  5.    public class CPeepM16 extends CPeep
  6.    {
  7.        
  8.       
  9.       private var _Command:String = "proceed";
  10.       
  11.       public function CPeepM16(param1:CPosition)
  12.       {
  13.          _Command = "proceed";
  14.          super(param1);
  15.          mType = "peepm16";
  16.          mMaxSpeed = (5 + Math.random()) * mSpriteScalar;
  17.          mSpeed = 0;
  18.          Process = Process_Normal;
  19.          mOrientation = 1;
  20.          SetTargetting(500 - Math.random() * 150,false,FILTER_GroundTargets,true,50);
  21.          AddAnimation("run",M16_Run,"AddSprite_Black",false);
  22.          AddAnimation("standaim",M16_Stand_Aim,"AddSprite_Black",true);
  23.          AddAnimation("crouchaim",M16_Crouch_Aim,"AddSprite_Black",true);
  24.          mAnimationFrame = Math.random();
  25.          AddThing(mPrimaryWeapon = new CWeaponM16());
  26.          IncrementBuild();
  27.          SetState("GOTO");
  28.       }
  29.       
  30.       public static function get mCost() : int
  31.       {
  32.          return 1000;
  33.       }
  34.       
  35.       public function get mCommandDrop() : Boolean
  36.       {
  37.          return false;
  38.       }
  39.       
  40.       public function get mIconIndex() : int
  41.       {
  42.          return 1;
  43.       }
  44.       
  45.       public function get mCommand() : String
  46.       {
  47.          return _Command;
  48.       }
  49.       
  50.       public function set mCommand(param1:String) : void
  51.       {
  52.          _Command = param1;
  53.       }
  54.       
  55.       public function get mLongName() : String
  56.       {
  57.          return "SPECIAL FORCES SOLDIER";
  58.       }
  59.       
  60.       public function get mCommandProceed() : Boolean
  61.       {
  62.          return true;
  63.       }
  64.       
  65.       public function get mShortDesc() : String
  66.       {
  67.          return "This soldier is skilled in these types of conflicts. Employed from around the globe they are the best of the best in combat situations. Good against troops!";
  68.       }
  69.       
  70.       public function get mCommandHalt() : Boolean
  71.       {
  72.          return false;
  73.       }
  74.       
  75.       override public function get mSmallPrize() : int
  76.       {
  77.          return mCost;
  78.       }
  79.       
  80.       override public function get mPrize() : int
  81.       {
  82.          return mCost * 10;
  83.       }
  84.       
  85.       public function get mCommandTakeControl() : Boolean
  86.       {
  87.          return false;
  88.       }
  89.    }
  90. }
  91.